<!--********************************************************************
* Copyright© 2000 - 2025 SuperMap Software Co.Ltd. All rights reserved.
*********************************************************************-->
<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <title data-i18n="resources.title_componentsMap_Vue"></title>
    <script type="text/javascript" include="vue" src="../js/include-web.js"></script>
    <script include="iclient-leaflet-vue" src="../../dist/leaflet/include-leaflet.js"></script>
    <style>
      #main {
        margin: 0 auto;
        width: 100%;
        height: 100%;
      }
    </style>
  </head>

  <body style=" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%;position: absolute;top: 0;">
    <div id="main">
      <sm-web-map :map-options="mapOptions">
        <sm-tile-layer :url="url"></sm-tile-layer>
      </sm-web-map>
    </div>

    <script>
      var host = window.isLocal ? window.server : 'https://iserver.supermap.io';
      new Vue({
        el: '#main',
        data() {
          return {
            url: host + '/iserver/services/map-china/rest/maps/China',
            mapOptions: {
              center: [35.25, 102.55],
              zoom: 5
            }
          };
        }
      });
    </script>
  </body>
</html>
